<table class="data">
    <thead>
        <tr>
            <th>No</th>
            <th>Price</th>
            <th width="120px">Update Date</th>
            <th>Update By</th>
        </tr>
    </thead>
    <tbody>
        <?php $cur = 0;
        foreach ($this->data as $key => $data): ?>
            <tr class="<?php echo $cur % 2 == 0 ? 'even-cell' : 'odd-cell'; ?>">
                <td class="center"><span><?php echo $cur + 1; ?></span></td>
                <td class="text-right"><?php echo number_format($data['CPSPriceHistory']['price'], 2); ?></td>
                <td><?php echo $date->displayDateTime($data['CPSPriceHistory']['created']); ?></td>
                <td><?php echo $data['User']['name']; ?></td>
            </tr>
        <?php ++$cur; ?>
        <?php endforeach; ?>
    </tbody>
</table>